package com.jd;

import org.springframework.stereotype.Component;

@Component
public class Book {
   //使用注解   实现  属性注入     1.周三      2.周四  预习
    private String name;
    private String isbn;

    public void setName(String name) {
        this.name = name;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", isbn='" + isbn + '\'' +
                '}';
    }
}
